<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="personService" class="ch09.person.service.PersonService" scope="session"/>
<%
	pageContext.setAttribute("people", personService.selectAllPerson());
%>
<table>
<c:forEach var="person" items="${people}">
   <tr>
   	<td><a href="View.jsp?id=${person.id}">${person.id}</a></td>
   	<td>&nbsp;</td><td>${person.name}</td>
   </tr>
</c:forEach>
</table>
<a href="WriteForm.html"><button>추가</button></a>

